package com.yungu.swift.autoconfig.oss;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author: cuixiuyin@alibaba-inc.com
 * @Date: 2018/11/05
 */

@Data
@ConfigurationProperties(prefix = OSSProperties.OSS_CONFIG_PREFIX)
public class OSSProperties {
    public static final String OSS_CONFIG_PREFIX = "swift.aliyun";

    private String accessKey;
    private String secretKey;
    private String endPoint;

    private int maxConnections = 200;
    private int socketTimeout = 10000;
    private int connectionTimeout = 5000;
    private int connectionRequestTimeout = 1000;
    private int idleConnectionTime = 10000;
    private int maxErrorRetry = 3;
}
